package com.jiazaibendi.lottery.dao.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SchemeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SchemeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSchemeNameIsNull() {
            addCriterion("scheme_name is null");
            return (Criteria) this;
        }

        public Criteria andSchemeNameIsNotNull() {
            addCriterion("scheme_name is not null");
            return (Criteria) this;
        }

        public Criteria andSchemeNameEqualTo(String value) {
            addCriterion("scheme_name =", value, "schemeName");
            return (Criteria) this;
        }

        public Criteria andSchemeNameNotEqualTo(String value) {
            addCriterion("scheme_name <>", value, "schemeName");
            return (Criteria) this;
        }

        public Criteria andSchemeNameGreaterThan(String value) {
            addCriterion("scheme_name >", value, "schemeName");
            return (Criteria) this;
        }

        public Criteria andSchemeNameGreaterThanOrEqualTo(String value) {
            addCriterion("scheme_name >=", value, "schemeName");
            return (Criteria) this;
        }

        public Criteria andSchemeNameLessThan(String value) {
            addCriterion("scheme_name <", value, "schemeName");
            return (Criteria) this;
        }

        public Criteria andSchemeNameLessThanOrEqualTo(String value) {
            addCriterion("scheme_name <=", value, "schemeName");
            return (Criteria) this;
        }

        public Criteria andSchemeNameLike(String value) {
            addCriterion("scheme_name like", value, "schemeName");
            return (Criteria) this;
        }

        public Criteria andSchemeNameNotLike(String value) {
            addCriterion("scheme_name not like", value, "schemeName");
            return (Criteria) this;
        }

        public Criteria andSchemeNameIn(List<String> values) {
            addCriterion("scheme_name in", values, "schemeName");
            return (Criteria) this;
        }

        public Criteria andSchemeNameNotIn(List<String> values) {
            addCriterion("scheme_name not in", values, "schemeName");
            return (Criteria) this;
        }

        public Criteria andSchemeNameBetween(String value1, String value2) {
            addCriterion("scheme_name between", value1, value2, "schemeName");
            return (Criteria) this;
        }

        public Criteria andSchemeNameNotBetween(String value1, String value2) {
            addCriterion("scheme_name not between", value1, value2, "schemeName");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIsNull() {
            addCriterion("create_people is null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIsNotNull() {
            addCriterion("create_people is not null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleEqualTo(String value) {
            addCriterion("create_people =", value, "createPeople");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleNotEqualTo(String value) {
            addCriterion("create_people <>", value, "createPeople");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleGreaterThan(String value) {
            addCriterion("create_people >", value, "createPeople");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleGreaterThanOrEqualTo(String value) {
            addCriterion("create_people >=", value, "createPeople");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleLessThan(String value) {
            addCriterion("create_people <", value, "createPeople");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleLessThanOrEqualTo(String value) {
            addCriterion("create_people <=", value, "createPeople");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleLike(String value) {
            addCriterion("create_people like", value, "createPeople");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleNotLike(String value) {
            addCriterion("create_people not like", value, "createPeople");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIn(List<String> values) {
            addCriterion("create_people in", values, "createPeople");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleNotIn(List<String> values) {
            addCriterion("create_people not in", values, "createPeople");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleBetween(String value1, String value2) {
            addCriterion("create_people between", value1, value2, "createPeople");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleNotBetween(String value1, String value2) {
            addCriterion("create_people not between", value1, value2, "createPeople");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andBaseFreIsNull() {
            addCriterion("base_fre is null");
            return (Criteria) this;
        }

        public Criteria andBaseFreIsNotNull() {
            addCriterion("base_fre is not null");
            return (Criteria) this;
        }

        public Criteria andBaseFreEqualTo(Integer value) {
            addCriterion("base_fre =", value, "baseFre");
            return (Criteria) this;
        }

        public Criteria andBaseFreNotEqualTo(Integer value) {
            addCriterion("base_fre <>", value, "baseFre");
            return (Criteria) this;
        }

        public Criteria andBaseFreGreaterThan(Integer value) {
            addCriterion("base_fre >", value, "baseFre");
            return (Criteria) this;
        }

        public Criteria andBaseFreGreaterThanOrEqualTo(Integer value) {
            addCriterion("base_fre >=", value, "baseFre");
            return (Criteria) this;
        }

        public Criteria andBaseFreLessThan(Integer value) {
            addCriterion("base_fre <", value, "baseFre");
            return (Criteria) this;
        }

        public Criteria andBaseFreLessThanOrEqualTo(Integer value) {
            addCriterion("base_fre <=", value, "baseFre");
            return (Criteria) this;
        }

        public Criteria andBaseFreIn(List<Integer> values) {
            addCriterion("base_fre in", values, "baseFre");
            return (Criteria) this;
        }

        public Criteria andBaseFreNotIn(List<Integer> values) {
            addCriterion("base_fre not in", values, "baseFre");
            return (Criteria) this;
        }

        public Criteria andBaseFreBetween(Integer value1, Integer value2) {
            addCriterion("base_fre between", value1, value2, "baseFre");
            return (Criteria) this;
        }

        public Criteria andBaseFreNotBetween(Integer value1, Integer value2) {
            addCriterion("base_fre not between", value1, value2, "baseFre");
            return (Criteria) this;
        }

        public Criteria andPyqFreIsNull() {
            addCriterion("pyq_fre is null");
            return (Criteria) this;
        }

        public Criteria andPyqFreIsNotNull() {
            addCriterion("pyq_fre is not null");
            return (Criteria) this;
        }

        public Criteria andPyqFreEqualTo(Integer value) {
            addCriterion("pyq_fre =", value, "pyqFre");
            return (Criteria) this;
        }

        public Criteria andPyqFreNotEqualTo(Integer value) {
            addCriterion("pyq_fre <>", value, "pyqFre");
            return (Criteria) this;
        }

        public Criteria andPyqFreGreaterThan(Integer value) {
            addCriterion("pyq_fre >", value, "pyqFre");
            return (Criteria) this;
        }

        public Criteria andPyqFreGreaterThanOrEqualTo(Integer value) {
            addCriterion("pyq_fre >=", value, "pyqFre");
            return (Criteria) this;
        }

        public Criteria andPyqFreLessThan(Integer value) {
            addCriterion("pyq_fre <", value, "pyqFre");
            return (Criteria) this;
        }

        public Criteria andPyqFreLessThanOrEqualTo(Integer value) {
            addCriterion("pyq_fre <=", value, "pyqFre");
            return (Criteria) this;
        }

        public Criteria andPyqFreIn(List<Integer> values) {
            addCriterion("pyq_fre in", values, "pyqFre");
            return (Criteria) this;
        }

        public Criteria andPyqFreNotIn(List<Integer> values) {
            addCriterion("pyq_fre not in", values, "pyqFre");
            return (Criteria) this;
        }

        public Criteria andPyqFreBetween(Integer value1, Integer value2) {
            addCriterion("pyq_fre between", value1, value2, "pyqFre");
            return (Criteria) this;
        }

        public Criteria andPyqFreNotBetween(Integer value1, Integer value2) {
            addCriterion("pyq_fre not between", value1, value2, "pyqFre");
            return (Criteria) this;
        }

        public Criteria andGroupFreIsNull() {
            addCriterion("group_fre is null");
            return (Criteria) this;
        }

        public Criteria andGroupFreIsNotNull() {
            addCriterion("group_fre is not null");
            return (Criteria) this;
        }

        public Criteria andGroupFreEqualTo(Integer value) {
            addCriterion("group_fre =", value, "groupFre");
            return (Criteria) this;
        }

        public Criteria andGroupFreNotEqualTo(Integer value) {
            addCriterion("group_fre <>", value, "groupFre");
            return (Criteria) this;
        }

        public Criteria andGroupFreGreaterThan(Integer value) {
            addCriterion("group_fre >", value, "groupFre");
            return (Criteria) this;
        }

        public Criteria andGroupFreGreaterThanOrEqualTo(Integer value) {
            addCriterion("group_fre >=", value, "groupFre");
            return (Criteria) this;
        }

        public Criteria andGroupFreLessThan(Integer value) {
            addCriterion("group_fre <", value, "groupFre");
            return (Criteria) this;
        }

        public Criteria andGroupFreLessThanOrEqualTo(Integer value) {
            addCriterion("group_fre <=", value, "groupFre");
            return (Criteria) this;
        }

        public Criteria andGroupFreIn(List<Integer> values) {
            addCriterion("group_fre in", values, "groupFre");
            return (Criteria) this;
        }

        public Criteria andGroupFreNotIn(List<Integer> values) {
            addCriterion("group_fre not in", values, "groupFre");
            return (Criteria) this;
        }

        public Criteria andGroupFreBetween(Integer value1, Integer value2) {
            addCriterion("group_fre between", value1, value2, "groupFre");
            return (Criteria) this;
        }

        public Criteria andGroupFreNotBetween(Integer value1, Integer value2) {
            addCriterion("group_fre not between", value1, value2, "groupFre");
            return (Criteria) this;
        }

        public Criteria andFriendFreIsNull() {
            addCriterion("friend_fre is null");
            return (Criteria) this;
        }

        public Criteria andFriendFreIsNotNull() {
            addCriterion("friend_fre is not null");
            return (Criteria) this;
        }

        public Criteria andFriendFreEqualTo(Integer value) {
            addCriterion("friend_fre =", value, "friendFre");
            return (Criteria) this;
        }

        public Criteria andFriendFreNotEqualTo(Integer value) {
            addCriterion("friend_fre <>", value, "friendFre");
            return (Criteria) this;
        }

        public Criteria andFriendFreGreaterThan(Integer value) {
            addCriterion("friend_fre >", value, "friendFre");
            return (Criteria) this;
        }

        public Criteria andFriendFreGreaterThanOrEqualTo(Integer value) {
            addCriterion("friend_fre >=", value, "friendFre");
            return (Criteria) this;
        }

        public Criteria andFriendFreLessThan(Integer value) {
            addCriterion("friend_fre <", value, "friendFre");
            return (Criteria) this;
        }

        public Criteria andFriendFreLessThanOrEqualTo(Integer value) {
            addCriterion("friend_fre <=", value, "friendFre");
            return (Criteria) this;
        }

        public Criteria andFriendFreIn(List<Integer> values) {
            addCriterion("friend_fre in", values, "friendFre");
            return (Criteria) this;
        }

        public Criteria andFriendFreNotIn(List<Integer> values) {
            addCriterion("friend_fre not in", values, "friendFre");
            return (Criteria) this;
        }

        public Criteria andFriendFreBetween(Integer value1, Integer value2) {
            addCriterion("friend_fre between", value1, value2, "friendFre");
            return (Criteria) this;
        }

        public Criteria andFriendFreNotBetween(Integer value1, Integer value2) {
            addCriterion("friend_fre not between", value1, value2, "friendFre");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNull() {
            addCriterion("start_time is null");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNotNull() {
            addCriterion("start_time is not null");
            return (Criteria) this;
        }

        public Criteria andStartTimeEqualTo(Date value) {
            addCriterion("start_time =", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotEqualTo(Date value) {
            addCriterion("start_time <>", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThan(Date value) {
            addCriterion("start_time >", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("start_time >=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThan(Date value) {
            addCriterion("start_time <", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("start_time <=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIn(List<Date> values) {
            addCriterion("start_time in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotIn(List<Date> values) {
            addCriterion("start_time not in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeBetween(Date value1, Date value2) {
            addCriterion("start_time between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("start_time not between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNull() {
            addCriterion("end_time is null");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNotNull() {
            addCriterion("end_time is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimeEqualTo(Date value) {
            addCriterion("end_time =", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotEqualTo(Date value) {
            addCriterion("end_time <>", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThan(Date value) {
            addCriterion("end_time >", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("end_time >=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThan(Date value) {
            addCriterion("end_time <", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("end_time <=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIn(List<Date> values) {
            addCriterion("end_time in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotIn(List<Date> values) {
            addCriterion("end_time not in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeBetween(Date value1, Date value2) {
            addCriterion("end_time between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("end_time not between", value1, value2, "endTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}